<?php
$email = $_GET['email'];
$subject = $_GET['subject'];
$message = $_GET['message'];

$con=mysqli_connect("localhost","root","s3cr3t","admin");
  // Check connection
if (mysqli_connect_errno())
  {
  //echo "alert'Failed to connect to MySQL: ' . mysqli_connect_error()";
  }

$sql="INSERT `feedback` VALUES (null, '$email', '$subject','$message');";

     if (!mysqli_query($con,$sql))
     {
          echo('Error: ' . mysqli_error($con));
     } 
mysqli_close($con);
?><script type="text/javascript">
	window.location.href = '../';
</script>
